package com.caeit.enum

enum class DateEnum(val value: Int) {
    ALL(0),
    TODAY(1),
    WEEK(2),
    MONTH(3);

    companion object {
        fun getDateObj(value: Int): DateEnum? {
            return when (value) {
                0 -> ALL
                1 -> TODAY
                2 -> WEEK
                3 -> MONTH
                else -> null
            }
        }
    }
}